package com.wl.service;

import org.apache.ibatis.annotations.Param;

import com.wl.entity.Delivery_07;
import com.wl.entity.Loginfo;
import com.wl.entity.Warehouse_06;
import com.wl.util.PageData;
/**
 * Warehouse_06业务层接口
 * @author HCH
 *
 */
public interface Warehouse_06Service {
	
	/**
	 * 动态sql语句添加业务信息
	 * @param record
	 * @return
	 */
	public boolean insertSelective(Warehouse_06 record);
	
	/**
	 * 根据当前处理人编号查找尚未处理的业务并分页
	 * @param page
	 * @param limit
	 * @param appno
	 * @return
	 */
	public PageData<Warehouse_06> selectWarehouseByAppno(int page, int limit, String appno);

	/**
	 * 根据flowid动态修改
	 * @param record
	 * @return
	 */
	public boolean updateByPrimaryKeySelective(Warehouse_06 record);
	
	/**
	 * 处理当前入库业务，并转发给下一领料业务
	 * @param warehouse
	 * @param delivery
	 * @return
	 */
	public boolean warehouseAndDelivery(Warehouse_06 warehouse,Delivery_07 delivery,Loginfo log);
	
	/**
	 * 分页+动态查询业务
	 * @param page
	 * @param limit
	 * @param warehouse
	 * @return
	 */
	public PageData<Warehouse_06> selectWarehouseByPage(int page, int limit, String flowid,String appno,String appresult, String starttime,String endtime, Integer appstatus, String applyno);

	/**
	 * 根据flowid查找业务记录
	 * @param flowid
	 * @return
	 */
	public Warehouse_06 selectByFlowid(String flowid);
}
